/*
 * CAntSimException.h
 *
 *  Created on: 18 Nov 2012
 *      Author: Mario Kleinsasser
 *		Time:	19:12:27
 */

#ifndef CANTSIMEXCEPTION_H_
#define CANTSIMEXCEPTION_H_

#include <exception>
#include <string>

using namespace std;

class CAntSimException: public exception {
public:
	/* Inline constructor to override string */
	CAntSimException(string s){
		this->s = s;
	}

	/* destructor must implement throw! */
	virtual ~CAntSimException() throw();

	/* this class is derived from exception we must implement what method! */
	virtual const char * what() const throw(){
		return s.c_str();
	}

private:
	string s;
};

#endif /* CANTSIMEXCEPTION_H_ */
